<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<ui:composition template="/WEB-INF/templates/padrao.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">


	<ui:define name="cabecalho">
		<ui:include src="/WEB-INF/templates/menuLeitor.xhtml" />
	</ui:define>


	<ui:define name="titulo">
		<h2 style="text-align: center">Editar Acesso</h2>
	</ui:define>

	<ui:define name="conteudo">
		<div class="hero-unit">

















			<h:form class="form-signin" id="atu">



				<h:panelGroup rendered="#{loginBean.msg.wmsg}">
					<div class="alert alert-block">
						<button type="button" class="close" data-dismiss="alert">x</button>
						<h4>Atenção!</h4>
						#{loginBean.msg.warningMsg}
					</div>
				</h:panelGroup>


				<h:panelGroup rendered="#{loginBean.msg.emsg}">
					<div class="alert alert-error">
						<button type="button" class="close" data-dismiss="alert">x</button>
						<h4>Erro!</h4>
						#{loginBean.msg.erroMsg}
					</div>
				</h:panelGroup>



				<h:panelGroup rendered="#{loginBean.msg.smsg}">
					<div class="alert alert-success">
						<button type="button" class="close" data-dismiss="alert">x</button>
						<h4>Sucesso!</h4>
						#{loginBean.msg.sucessMsg}
					</div>
				</h:panelGroup>





				<fieldset>
					<legend style="color: blue">Dados do Acesso</legend>


					<h:panelGrid columns="3">



						<h:outputLabel value="Login: " for="idu" />
						<h:inputText id="idu" label="Login: "
							value="#{loginBean.pesquisador.login.id_usuario}" required="true"
							requiredMessage="*O Login é obrigatório!"
							style="width:255px; height:30px" />
						<h:message for="idu" style="color:red" />




						<h:outputLabel value="Senha Antiga: " for="aseh" />
						<h:inputSecret id="aseh" label="Senha Antiga"
							value="#{loginBean.pesquisador.login.senhaControl.senha_antiga}"
							required="true"
							requiredMessage="*A Senha Antiga do Usuário é Obrigatório!"
							style="width:255px; height:30px">
							<f:validateLength minimum="6" />
						</h:inputSecret>
						<h:message for="aseh" style="color:red" />


						<h:outputLabel value="Nova Senha: " for="nseh" />
						<h:inputSecret id="nseh" label="Nova Senha"
							value="#{loginBean.pesquisador.login.senhaControl.nova_senha}"
							required="true"
							requiredMessage="*A Nova Senha do Usuário é Obrigatório!"
							style="width:255px; height:30px">
							<f:validateLength minimum="6" />
						</h:inputSecret>
						<h:message for="nseh" style="color:red" />


						<h:outputLabel value="Confirmar Nova Senha: " for="cseh" />
						<h:inputSecret id="cseh" label="Confirmar Nova Senha"
							value="#{loginBean.pesquisador.login.senhaControl.confirma_senha}"
							required="true"
							requiredMessage="*A confirmação da Nova Senha do Usuário é Obrigatório!"
							style="width:255px; height:30px">
							<f:validateLength minimum="6" />
						</h:inputSecret>
						<h:message for="cseh" style="color:red" />



						<h:commandButton for="atu" action="#{loginBean.Atualizar}"
							name="Atualizar" value="Atualizar"
							class="btn btn-large btn-primary" />



					</h:panelGrid>

				</fieldset>


			</h:form>


		</div>

	</ui:define>

</ui:composition>